package com.juyu.miliao.api.domain;

import java.time.LocalDateTime;

import javax.validation.constraints.Min;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.juyu.miliao.api.validator.UserVipCheck;
import lombok.Data;

/**
 * 用户vip记录
 */
@Data
public class UserVip {
	/** id*/
	private int userVipId;
	/** 用户编号*/
	@Min(value = 1, groups = {UserVipCheck.class})
	private long userId;
	/** vip充值类型*/
	@Min(value = 1, groups = {UserVipCheck.class})
	private int vipId;
	/** vip有效时间（单位：天）*/
	private int vipDate;
	/** 是否有效：1 有效 2 无效*/
	private int status;
	/** 同城夜聊支付类型 1畅聊 2qq 3微信 4全部*/
	private int vipPayType;
	/**
	 * vip类型：1：普通vip,2:svip
	 */
	private int vipType;
	/**
	 * 失效时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime expireTime;
	/** 创建时间*/
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
	/** 更新时间*/
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateTime;

	private int vipLevel;


	
	
}
